#include <stdio.h>
#include "types.h"
#include "list.h"

typedef struct list_t {
    f32 value;
    void *next;
} list_t;

void list_print(list_t* list) {
    printf("List contents:\n  ");
    while(list) {
        printf("%.1f ", list->value);
        list = list->next;
    }
    printf("\n");
}

int main(void) {
    list_t *data = malloc(sizeof(*data));
    data->value = 0;
    data->next = NULL;
    for (u8 i=1; i<=25; ++i) {
        list_append(data, (f32) i);
    }
    list_print(data);
    list_free(data);
    return 0;
}